Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: improve and fix bid timeout logic #10379

Merged
merged 5 commits into from
Sep 14, 2023

Conversation

dgirardi
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

  • Fix an edge case where S2S bids can be incorrectly marked as timed out
  • Simplify timeout logic: currently there are two separate timeout mechanisms, one always firing after bidderTimeout and the other sometimes firing after bidderTimeout + timeoutBuffer. Since the second, when it happens, always happens too late, it was removed as redundant.

Other information

Closes #10349

@ChrisHuie ChrisHuie requested a review from spotxslagle August 23, 2023 13:04
@ChrisHuie ChrisHuie self-requested a review August 23, 2023 13:04
@ChrisHuie ChrisHuie self-assigned this Aug 23, 2023
Copy link
Contributor

@spotxslagle spotxslagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented a few personal preferences, but otherwise LGTM

@@ -380,7 +380,7 @@ adapterManager.callBids = (adUnits, bidRequests, addBidResponse, doneCb, request
return;
}

let [clientBidRequests, serverBidRequests] = bidRequests.reduce((partitions, bidRequest) => {
let [clientBidderReqs, serverBidRequests] = bidRequests.reduce((partitions, bidRequest) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're changing this variable? I find the new name less readable. I'd prefer clientBidderRequests, personally.

src/auction.js Outdated
}

if (_auctionEnd === undefined) {
let timedOutBidders = [];
let timedOutReqs = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timedOutRequests

@ChrisHuie ChrisHuie merged commit 8075455 into prebid:master Sep 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review and improve bid timeout logic
3 participants